package com.example.demo;

import com.example.demo.config.RedisCluster;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * yaml有序，而properties无序
 */
@SpringBootApplication
public class SpringYmlDemoApplication {

    @Autowired
    RedisCluster redisCluster;

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SpringYmlDemoApplication.class, args);
        System.err.println("redisCluster: " + applicationContext.getBean(RedisCluster.class));
    }

}
